package com.hyjoy.entity;

/**
 * 订单项
 */
public class OrderItem {
    /*
     * `itemid` varchar(32) NOT NULL,
              `count` int(11) DEFAULT NULL,
              `subtotal` double DEFAULT NULL,
              `pid` varchar(32) DEFAULT NULL,
              `oid` varchar(32) DEFAULT NULL,
     */
    private String itemid;
    private Integer count;
    private Double subtotal;

    //表示包含那个商品
    private Product product;

    //表示属于那个订单
    private Order order;

    public String getItemid() {
        return itemid;
    }

    public void setItemid(String itemid) {
        this.itemid = itemid;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Double getSubtotal() {
        return subtotal;
    }

    public void setSubtotal(Double subtotal) {
        this.subtotal = subtotal;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }


}
